package com.example.blog.dao.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.security.SecureRandom;
import java.util.Date;

@Data
@TableName("tb_comment")
public class Comment {


    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userID;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long articleId;
    private String comment;
    private Date time;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long toId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;
    private Integer level;
}
